<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
		<rich:popupPanel id="participantDetail" autosized="true" modal="true" show="#{ParticipantOverviewViewBean.showInnerComp}" moveable="true">
		<f:facet name="header"><center>Teilnehmer Detail</center></f:facet>
		<center><h:outputLabel value="Teilnehmer ändern/löschen" styleClass="ueberschrift"/></center>
		<h:form id="participant_inner_change_form">
		
		<table id="Teilnehmer_aendern_table" class="standart kontoverwaltung">
			<tr>
				<td>Name:</td>
				<td><h:inputText readonly="#{!sessionManagerBean.userinfo.user.benutzerrolle.bezeichnung.equals('Administrator')}" value="#{ParticipantOverviewViewBean.nameChange}" maxlength="30"/> </td>
			</tr>
			<tr>
				<td>Passwort ändern ?</td>
				<td><h:selectBooleanCheckbox disabled="#{!sessionManagerBean.userinfo.user.benutzerrolle.bezeichnung.equals('Administrator')}" value="#{ParticipantOverviewViewBean.passwortChange}" >
				<a4j:ajax event="change" render="participant_inner_change_form"/>
				</h:selectBooleanCheckbox>
				</td>
			</tr>
			<tr>
				<td>neues Passwort:</td>
				<td><h:inputSecret disabled="#{!ParticipantOverviewViewBean.passwortChange}" value="#{ParticipantOverviewViewBean.passwort}" maxlength="50"/> </td>
			</tr>
			<tr>
				<td> neues Passwort wiederholen:</td>
				<td><h:inputSecret disabled="#{!ParticipantOverviewViewBean.passwortChange}" value="#{ParticipantOverviewViewBean.passwort2}" maxlength="50"/> </td>
			</tr>
			<tr>
				<td colspan="3"><center><hr width="80%"/></center></td>
			</tr>
			<tr>
				<td><center><a4j:commandButton disabled="#{!sessionManagerBean.userinfo.user.benutzerrolle.bezeichnung.equals('Administrator')}" execute="participant_inner_change_form" action="#{ParticipantOverviewViewBean.ChangeParticipant()}" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" value="speichern" render="Messagespopup participant_table participant_inner_change_form"/></center></td>
				<td><center><a4j:commandButton disabled="#{!sessionManagerBean.userinfo.user.benutzerrolle.bezeichnung.equals('Administrator')}" execute="participant_inner_change_form" action="#{ParticipantOverviewViewBean.DeleteParticipant()}" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();#{rich:component('participantDetail')}.hide();return false;"  value="löschen" render="Messagespopup participant_table"/></center></td>
				<td><center><a4j:commandButton execute="@this" action="#{ParticipantOverviewViewBean.innerCompHide()}" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();#{rich:component('participantDetail')}.hide();return false;" value="abbrechen"/></center></td>
			</tr>
		</table>	
		</h:form>	
		</rich:popupPanel>											
</ui:composition>